package com.wxh.jwt.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @ClassName: User
 * @Description: 用户类
 * @Author wxh
 * @Date: 2020/5/28 11:07
 * @Version V1.0.0
 * @Since 1.8
 */
@Entity
@Table(name = "t_user")
public class User {
    /**
     *  用户ID
     */
    @Id
    @Column(name = "user_id")
    private String userId;
    /**
     * 用户姓名
     */
    @Column(name = "user_name")
    private String userName;
    /**
     * 用户密码
     */
    @Column(name = "password")
    private String password;

    public User(){

    }

    public User(String userId, String userName, String password) {
        this.userId = userId;
        this.userName = userName;
        this.password = password;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }


}
